mixin modal(id)
  .modal(id=id, tabindex="-1", role="dialog", class!=attributes.cls)
    .modal-dialog
      .modal-content(class!=attributes.contentcls)
        .modal-body
          if block
            block
        .modal-close(data-dismiss="modal")